public class Teacher extends Users{
    private String teacherNo;
    private String department;

    public Teacher(String id, String name, String phoneNo, String email, String teacherNo, String department) {
        super(id, name, phoneNo, email);
        this.teacherNo = teacherNo;
        this.department = department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getTeacherNo() {
        return teacherNo;
    }

    public String getDepartment() {
        return department;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id='" + getId() + '\'' +
                ", name='" + getName() + '\'' +
                ", phoneNo='" + getPhoneNo() + '\'' +
                ", email='" + getEmail() + '\''+
                "teacherNo='" + teacherNo + '\'' +
                ", department='" + department + '\'' +
                '}';
    }
}
